package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.ui.Model;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by syh on 2018/8/4.
 */
@Controller
@RequestMapping("/xiaoShouERouter")
public class WmsXiaoShouERouter {
    @Autowired
    SysMenuService menuService;
    /**
     * 跳转查询列表页
     * @param model
     * @param menu
     * @return
     */
    @RequestMapping(value = "getXiaoShouEList/{menu}")
    public String getXiaoShouEList(@PathVariable("menu") String menu, Model model){
        model.addAttribute("functions",menuService.getFunctions(menu));
        return  "journaling/wmsXiaoShouE/listXiaoShouE";
    }
}